package com.itheima.stock.pojo.domain;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 树状结构回显权限集合,会进行递归定义子权限
 */
@Builder
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PermissionsTreeDomain {
    /**
     * 权限id
     */
    private Long id;

    /**
     * 标题
     */
    private String title;

    /**
     * 菜单图标
     */
    private String icon;

    /**
     * 菜单路径
     */
    private String path;

    /**
     * 菜单名字
     */
    private String name;

    /**
     * 子权限
     */
    private List<PermissionsTreeDomain> children;
}
